go/printer.printer.posFor (method)
16 uses
go/printer (current package)
nodes.go#L83: p.flush(p.posFor(g.List[0].Pos()), token.ILLEGAL)
nodes.go#L133: prev := p.posFor(prev0)
nodes.go#L134: next := p.posFor(next0)
nodes.go#L145: prev := p.posFor(prev0)
nodes.go#L146: next := p.posFor(next0)
nodes.go#L482: hasComments := isIncomplete || p.commentBefore(p.posFor(rbrace))
nodes.go#L573: p.flush(p.posFor(rbrace), token.RBRACE) // make sure we don't lose the last line comment
nodes.go#L614: p.flush(p.posFor(rbrace), token.RBRACE) // make sure we don't lose the last line comment
nodes.go#L1445: if len(body.List) == 0 && !p.commentBefore(p.posFor(body.Rbrace)) {
nodes.go#L1769: bodySize := p.commentSizeBefore(p.posFor(pos2))
nodes.go#L1826: if startPos.IsValid() && p.pos.IsValid() && p.posFor(startPos).Line == p.pos.Line {
printer.go#L140: p.commentOffset = p.posFor(list[0].Pos()).Offset
printer.go#L196: func (p *printer) posFor(pos token.Pos) token.Position {
printer.go#L640: pos := p.posFor(comment.Pos())
printer.go#L752: p.writeCommentPrefix(p.posFor(c.Pos()), next, last, tok)
printer.go#L969: p.pos = p.posFor(x) // accurate position of next item
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)